//
//  XLTabBarConfig.m
//  XLTabBarController
//
//  Created by ZxlAndZyp on 2019/1/8.
//  Copyright © 2019 zuoxueliang. All rights reserved.
//

#import "XLTabBarConfig.h"
#import "XLUtils/UIColor+XLExtension.h"
@implementation XLTabBarConfig

static id _instance = nil;

+ (instancetype)tabBarConfig {
    return [[self alloc] init];
}

+ (instancetype)allocWithZone:(struct _NSZone *)zone {
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _instance = [super allocWithZone:zone];
    });
    return _instance;
}

- (instancetype)init {
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _instance = [super init];
        [self configNormal];
    });
    return _instance;
}

- (void)configNormal {
    _norTitleColor = [UIColor colorWithHexString:@"#808080"];
    _selTitleColor = [UIColor colorWithHexString:@"#d81e06"];
    _hiddenTopLine = YES;
    _topLineColor = [UIColor lightGrayColor];
    _tabBarBgColor = [UIColor whiteColor];
    _layoutType = XLLayoutTypeNormal;
    _imageSize = CGSizeMake(28, 28);
    _titleFont = 12.f;
    _titleOffset = 2.f;
    _imageOffset = 2.f;
}


@end
